package Encapsulation.封装;

public class SOuter {
	private static int score = 84;
	private int a = 99;
	static  int b = 100;
	
	public static class SInner{
		 int score = 94;
		 int b = 200;
		 public void show() {
			 System.out.println("访问外部类的b：" + SOuter.b);
			 System.out.println("访问内部类的b：" + b);
			 System.out.println("访问外部类的b：" + SOuter.score);
			 System.out.println("\n");
			 System.out.println("访问外部类的 score ：" + SOuter.score);
			 System.out.println("访问内部类的 score ：" + score);
		 }
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		SOuter.SInner S = new SOuter.SInner();
		S.show();

		SInner si = new SInner();
		si.show();
		

	}

}
